package gui2.g3;

import java.util.List;

import javax.swing.DefaultListModel;

public class ChatListModel extends DefaultListModel implements
		ChatModelListener {

	@Override
	public void messageAdded(List<ChatMessage> allMessages) {
		//if (!allMessages.get(allMessages.size() - 1).getMsg().equals("AFK")) {
			addElement(allMessages.get(allMessages.size() - 1));
		//}
	}

}
